import request from '@/utils/request'

export function query(query) {
    return request({
        url: '/purchase-company/list', method: 'get', params: query
    })
}

export function add(data) {
    return request({
        url: '/purchase-company', method: 'post', data
    })
}

export function remove(ids) {
    return request({
        url: '/purchase-company/delete', method: 'post', data: { ids }
    })
}

export function update(data) {
    return request({
        url: '/purchase-company', method: 'put', data
    })
}

export function getCompanyInfo(query) {
    return request({
        url: '/file/search/search-company-info-by-xlb',
        method: 'get',
        params: query
    })
}
